package com.demo.webapp.kcfinder.result;

import java.io.IOException;

import javax.servlet.ServletException;

import com.demo.webapp.kcfinder.config.ResultConfig;
import com.demo.webapp.kcfinder.context.ActionContext;

/**
 * Action方法执行后的结果对象
 * 
 * @author ryuu.kk
 *
 */
public interface Result {

	//是否需要结果渲染标志？
	public static final int RESULT_CODE_SUCCESS = 200;
	public static final int RESULT_CODE_FAULT = 400;
	public static final int RESULT_CODE_ERROR = 500;
	/**
	 * 执行渲染方法
	 * @param 
	 * @param proxy
	 * @param context
	 * @return
	 */
	String render(ActionContext context, ResultConfig config) throws IOException, ServletException;
}
